package com.yoosora.utils;

import com.google.common.base.CaseFormat;
import org.apache.commons.lang3.StringUtils;

public class Strings extends StringUtils {
	public static final String SPACE = " ";
	public static final String EMPTY = "";
	public static final String EN_COMMA = ",";
	public static final String SPOT = ".";

	public Strings() {
	}

	public static String underToCamel(String str) {
		return isNotBlank(str) ? CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, str) : "";
	}

	public static String camelToUnder(String str) {
		return isNotBlank(str) ? CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, str) : "";
	}
}
